package com.magic.gre.helper;

import android.os.Environment;

import com.magic.gre.GREApp;

import java.io.File;

/**
 * Author: Lmoumou
 * Date: 2019-01-07 11:19
 * 文件名: Contract
 * 描述:一些配置数据
 */
public class Contract {

    //开发服务器
    //url
//    public static final String BASE_URL = "http://192.168.137.1:8081/zjgre-api/";
//    //资源服务器
//    public static final String BASE_RE_URL = "http://192.168.1.111:8088/";
//    //资源域
//    public static final String AREA_FIEL = "zjgre";

    //测试服务器

    //url
//    public static final String BASE_URL = "http://192.168.1.111:8082/zjgre-api/";
//    //资源服务器
//    public static final String BASE_RE_URL = "http://192.168.1.111:8088/";
//    //资源域
//    public static final String AREA_FIEL = "zjgre";

    //url
//    public static final String BASE_URL = "http://47.104.243.188:8092/zjgre-api/";
//    //资源服务器
//    public static final String BASE_RE_URL = "http://47.104.243.188:5888/";
//    //资源域
//    public static final String AREA_FIEL = "zjgre";

    //url
//    public static final String BASE_URL = "http://192.168.1.144:8084/zjgre-api/";
//    //资源服务器
//    public static final String BASE_RE_URL = "http://192.168.1.111:8088/";
//    //资源域
//    public static final String AREA_FIEL = "zjgre";

    /**
     * 正式服务器
     * */
    //url
    public static final String BASE_URL = "http://47.104.98.35:8092/zjgre-api/";
    //资源服务器
    public static final String BASE_RE_URL = "http://47.104.98.35:5888/";
    //资源域
    public static final String AREA_FIEL = "zjgre";


    public final static String APP_ROOT_PATH = Environment.getExternalStorageDirectory() + File.separator + GREApp.getContext().getPackageName();
    public final static String DOWNLOAD_DIR = File.separator+ "Download" + File.separator;

    //
    public final static String FILE_NAME="GREDownload";

    //列表单词请求数据长度
    public final static int PAGER_SIZE = 10;
    //生词本Id
    public final static String NEW_WORDS_ID = "unripe";

    //单词的类型
    //名词
    public final static String WORDS_N = "n.";
    //代词
    public final static String WORDS_PRON = "pron.";
    //形容词
    public final static String WORDS_ADJ = "adj.";
    //副词
    public final static String WORDS_ADV = "adv.";
    //动词
    public final static String WORDS_V = "v.";
    //数词
    public final static String WORDS_NUM = "num.";
    //冠词
    public final static String WORDS_ART = "art.";
    //介词
    public final static String WORDS_PREP = "prep.";
    //连词
    public final static String WORDS_CONJ = "conj.";
    //感叹词
    public final static String WORDS_INTERJ = "interj.";
    //近义词
    public final static String WORDS_NEAR = "近义词";

    //用户协议
    public final static String AGREEMENT_URL = BASE_URL + "resources/userProtocol";

    //首页文章内容
    public final static String GROOM_URL = BASE_URL + "resources/article";

    //关于我们
    public final static String ABOUT_URL = BASE_URL + "resources/aboutUs";

    //客服
    public final static String COUSTOM_URL = BASE_URL + "kefu.html";

    //背词统计
    public final static String WORDS_COUNT_URL = BASE_URL + "share_learnCount.html";

    //答题结束
    public final static String ANSWER_FINISH_URL = BASE_URL + "share_contest.html";

    //报名疑问解答地址
    public final static String QA_URL = BASE_URL + "share_rule.html";

    //分享图片地址
    public final static String Share_IMG_URL = BASE_URL + "share_image/yasuo.jpg";
}
